<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" href="/css/default.css" type="text/css" media="all" />
	<link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />

	<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
	<script type="text/javascript" src="/default/js/index.js"></script>
</head>
<body class="main">

<div id="page_margins">
	<div class="page">

<?php echo $this->partial('header.phtml', array('menu' => $this->menu)); ?>

	</div>
		<div class="promo"><div class="bg_promo">
			<div class="scroll-list">
				<a href="#" class="prev"><span><</span></a>
				<a href="#" class="next"><span><</span></a>
				<div class="holl">
					<ul class="slideList">

<?php foreach ($this->services->items() as $item) : ?>
	<?php $url = $this->url(array('controller' => 'service', 'alias' => $item->alias), 'controller-alias'); ?>

			<li><h1><a href="<?php echo $url; ?>"><?php echo $item->title; ?></a></h1></li>

<?php endforeach; ?>


					</ul>
					<div class="navPoint"><div class="blockPoint"><div class="listPoint">

						<?php foreach ($this->services->items() as $item) : ?>
							<a href=""></a>
						<?php endforeach; ?>

					</div></div></div>
				</div>
			</div>
		</div></div>


	<div class="page">
		<div class="columns">



			<ol class="number_promo">

<?php foreach ($this->ads->items() as $item) : ?>

				<li>
					<span class="ads <?php echo $item->alias; ?>"><i></i><span title = "<?php echo $item->title; ?>">&nbps;</span></span>
					<span><?php echo $item->announce; ?></span>
				</li>

<?php endforeach; ?>

			</ol>
			<ul>
				<li>
					<h2>Новости</h2>
					<ul class="hfeed">

<?php foreach ($this->news->items() as $item) : ?>
	<?php $date = date('d-m-Y', strtotime($item->created_at)); ?>
	<?php $url = $this->url(array('id' => $item->id), 'about-news-id'); ?>

						<li class="hentry">
							<div class="published"><?php echo $date; ?></div>
							<h2 class="entry-summary"><?php echo $item->title; ?></h2>
							<a href="<?php echo $url; ?>" rel="bookmark">Подробнее</a>
						</li>

<?php endforeach; ?>

					</ul>
				</li>
				<li>
					<h2>Публикации</h2>
					<ul class="hfeed">

<?php foreach ($this->articles as $item) : ?>
	<?php $date = date('d-m-Y', strtotime($item->created_at)); ?>
	<?php $url = $this->url(array('action' => 'articles'), 'about-action'); ?>

						<li class="hentry">
							<div class="published"><?php echo $date; ?></div>
							<h2 class="entry-summary"><?php echo $item->title; ?></h2>

	<?php if (!empty($item->image)) : ?>

							<img src="/upload/<?php echo $item->image?>" alt="<?php echo $item->title; ?>" />

	<?php endif; ?>

	<?php if (!empty($item->author)) : ?>

							<p class="text-img">АВТОР -<br /> <span class="green"><?php echo $item->author; ?></span></p>

	<?php endif; ?>
	
							<a href="<?php echo $url; ?>" rel="bookmark">Все публикации</a>
						</li>

<?php endforeach; ?>

					</ul>
				</li>
				<li>
					<h2><?php echo $this->about->title; ?></h2>

<?php echo $this->about->body; ?>

				</li>
				<li class="made-project-width">

					<div class="made-project"><div><div><div>
						<h2>Реализованные проекты</h2>
						<div class="scroll-list">
							<a href="#" class="prev"><span><</span></a>
							<a href="#" class="next"><span><</span></a>
							<div class="holl">
								<ul>

<?php $url = $this->url(array('controller' => 'projects')); ?>
<?php foreach ($this->projects as $item) : ?>

									<li>

	<?php if (!empty($item->image)) : ?>

										<a href = "<?php echo $url; ?>"><img src="/upload/<?php echo $item->image; ?>" /></a>

	<?php endif; ?>

										<h2><a href = "<?php echo $url; ?>"><?php echo $item->title; ?></a></h2>
										<a href = "<?php echo $url; ?>"><span>Электронная презентация</span></a>
									</li>

<?php endforeach; ?>

								</ul>
							</div>
						</div>
					</div></div></div></div>
				</li>
			</ul>
			<ul class="mini-promo">
						<li>
							<img src="/i/map.gif" alt="" />
							<h2 class="our-office"><span>Наш офис</span></h2>
							<p><strong>в Украине</strong></p>
							<p><a href="<?php echo $this->url(array('action' => 'contacts'), 'about-action'); ?>">Адрес</a></p>
						</li>
						<li>

<?php if (!empty($this->specialist)) : ?>
	<?php if (!empty($this->specialist->image)) : ?>

							<img src="/upload/<?php echo $this->specialist->image; ?>" alt="<?php echo $this->specialist->title; ?>" />

	<?php endif; ?>
							<h2 class="senior-staff"><span>Ведущие специалисты</span></h2>
							<p><strong><?php echo $this->specialist->title; ?></strong>
							<?php echo $this->specialist->announce; ?></p>

<?php endif; ?>

						</li>
						<li>
							<img src="/i/pr.jpg" alt="" />
							<h2 class="normative-documentation"><span>База нормативных документов</span></h2>
							<p><strong>по СИЗ</strong></p>
							<p><a href="<?php echo $this->url(array('controller' => 'docs')); ?>">Скачать</a></p>
						</li>
					</ul>

		</div>

<?php echo $this->partial('footer.phtml'); ?>

	</div>
	</div>
</div>

</body>
</html>